<template>
  <div class="about">
    <h1>This is an about page</h1>
    <el-button @click="cs">点击</el-button>
    <el-button @click="cs2">点击2</el-button>
    <span>{{$store.getters.defaultSelectSystem}}</span>
    <span>{{$store.getters.defaultSystem}}</span>
  </div>
</template>
<script>
  import store from '@/store'
  export default {
    name: "index",
    components: {},
    data() {
      return {value1:0}
    },
    methods: {
      cs(){
        store.dispatch('GenerateRoutes');

      },
      cs2(){
        console.log("store",store)
        store.commit("SET_DEFAULT_SELECT_SYSTEM",store.getters.defaultSystem[1]);

      }
    },
    watch: {},
    created() {
    },
    mounted() {
    },

  }
</script>
<style scoped>

</style>